package com.ruicar.afs.cloud.workflow.api.dto;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.ruicar.afs.cloud.common.core.enums.AfsEnumDeserializer;
import com.ruicar.afs.cloud.common.core.enums.AfsEnumSerializer;
import com.ruicar.afs.cloud.common.modules.enums.GreatWallFlowParamType;
import lombok.Data;

@Data
public class FlowParam {
    @JSONField(serializeUsing = AfsEnumSerializer.class, deserializeUsing = AfsEnumDeserializer.class)
    @JsonSerialize(using = AfsEnumSerializer.class)
    @JsonDeserialize(using = AfsEnumDeserializer.class)
    private GreatWallFlowParamType type;

    private String label;

    private String value;

    public FlowParam() {
    }

    public FlowParam(String label, String value) {
        this.label = label;
        this.value = value;
    }
}
